package com.guava.string;

import com.google.common.base.CaseFormat;

/**
 * CaseFormatterTester--GuavaTest
 *
 * @author: Jovi
 * @createTime: 2018-05-11 15:00
 **/
public class CaseFormatterTester {

    public static void main(String[] args) {
        String data = "test_data";
        System.out.println(CaseFormat.LOWER_HYPHEN.to(CaseFormat.LOWER_CAMEL, "test-data"));
        System.out.println(CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "test_data"));
        System.out.println(CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, "test_data"));

    }
}
